package cn.zsb.extendDemo;

public class EmployeeTest {
    public static void main(String[] args) {
        Manager m = new Manager("1", "zsb", 1000, 2000);
        System.out.println(m.getId() + ", " + m.getName() + ", " + m.getSalary() + ", " + m.getBouns());
        m.work();
        m.eat();

        Cook c = new Cook();
        c.setId("2");
        c.setName("zsb");
        c.setSalary(1000);
        System.out.println(c.getId() + ", " + c.getName() + ", " + c.getSalary());
        c.work();
        c.eat();
    }
}

